#!/bin/sh
find -L . -name "*.h" -o -name "*.cpp" -o -name "*.c" > .cscope.files
cscope -bkq -i .cscope.files
rm -fr .cscope.files
mv cscope.out .cscope.out
mv cscope.in.out .cscope.in.out
mv cscope.po.out .cscope.po.out
# ctags -R
# ctags -R --c++-kinds=+p --fields=+iaS --extra=+q
ctags -R --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes --c-kinds=+p --c++-kinds=+p --fields=+iaS --extra=+q -f .tags
# ctags -R --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes --c-kinds=+p --c++-kinds=+p --fields=+iaS -f .tags

